package com.javase.sy06.Q1;

public class Main {
    public static void main(String[] args) {
        Shape square = new Square(10, 10, 10);
        double area = square.area();
        double volume= square.volume();
        System.out.println("正方体面积：" + area + " 正方体体积：" + volume);

        Shape cylinder = new Cylinder(10,10);
        area = cylinder.area();
        volume = cylinder.volume();
        System.out.println("圆柱体面积：" + area + " 圆柱体体积：" + volume);

        Shape cone = new Cone(10,15,10);
        area = cone.area();
        volume = cone.volume();
        System.out.println("圆锥体面积：" + area + " 圆锥体体积：" + volume);
    }
}
